package com.lingshi.shopping_admin_service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lingshi.shopping.entity.Admin;
import com.lingshi.shopping.entity.Permission;

import java.util.List;

public interface AdminMapper extends BaseMapper<Admin> {
    /**
     * 根据逐渐查询用户信息
     * @param aid
     * @return
     */
    Admin selectByPrimaryKey(Long aid);

    List<Permission> selectAllPermissions(String username);
}
